﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BlogSite.Models
{
    public class Blog
    {
        public int BlogId
        {
            get;
            set;
        }
        public string Name { get; set; }
        public string Topic { get; set; }
        public string Post { get; set; }

        public Blog()
        {
            //BlogId = 0;
            //Name = string.Empty;
            //Topic = string.Empty;
            //Post = string.Empty;
        }

        public Blog(string name, string topic, string post) 
        {
            BlogId = BlogHelper.BlogID++;
            Name = name;
            Topic = topic;
            Post = post;
        }


    }
}